package com.xry.service;

import com.xry.bean.Product;
import com.xry.util.Page;

import java.util.List;
import java.util.Map;

public interface ProductService {
    Product add(Product product);

    int del(Integer id);

    Product edit(Product product);

    List<Product> all(Product product);

    Product one(Integer id);

    void page(Page page, Product product);

    List<Map<String, Integer>> countBrand();

    List<Map<String, Integer>> countCategory();

}
